import javax.print.DocFlavor;

/*
class Student{
    public String name;
    public int age;
    public String sex;
    public String hight;

    public Student(String name, int age, String sex, String hight) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.hight = hight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHight() {
        return hight;
    }

    public void setHight(String hight) {
        this.hight = hight;
    }
}
*/





/*class Student{

//    成员属性
    public String name;
    public int age;
    public String sex;

    //成员方法
    public void input_Student(){
        System.out.println("该学生的名字:" + this.name + "()" + this.sex + "->" + this.age);
    }
    public void DoClass(){
        System.out.println(this.name + "按时上课");
    }
    public void DoHomework(){
        System.out.println(this.name + "按时完成作业");
    }
    public void Exam(){
        System.out.println(this.name + "诚心考试");
    }
}*/

/*class Date{
    public int year;
    public int month;
    public int day;

    public void SteDay(int year,int mmonth,int day){   //设置哪个对象
        year = year;
        month = month;
        day = day;
    }

    public void printDate(){
        System.out.println(year + "/" + month + "/" + day);  //打印哪个对象
    }
}*/

/*
class Date{
    public int year;
    public int month;
    public int day;

    public void SteDay(Date this,int year,int month,int day){   //date this 为隐藏属性
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printDate(Date this){
        System.out.println(this.year + "/" + this.month + "/" + this.day);
    }
}
*/

/*
class Date{
    public int year;
    public int month;
    public int day;

    public Date(int year,int month,int day){   //带三个参数的构造方法
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("调用了Date（int，int,int）这个方法");
    }

    public Date(int year,int month){        //带二个参数的构造方法
        this.year = year;
        this.month = month;
        System.out.println("调用了Date（int，int）这个方法");
    }

    public Date(int year){              //带一个参数的构造方法
        this.year = year;
        System.out.println("调用了Date（int）这个方法");
    }

    public Date(){                    //不带参数的构造方法
        System.out.println("调用了Date（）这个方法");
    }
*/

/*class Date{
    public int year;
    public int month;
    public int day;

    public Date(int year,int month,int day){
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("调用了Date（int，int,int）这个方法");
    }


    public Date(){
        this(2004,8,24);
        System.out.println("调用了Date（）这个方法");
    }



    public void printDate(Date this){
        System.out.println(this.year + "/" + this.month + "/" + this.day);
    }
}*/

/*class Student {
    public String name;
    public int age;
    public String sex;
    public static int classroom;

    public Student() {
        System.out.println("构造方法");
    }

    {
        this.name = "liming";
        this.age = 12;
        this.sex = "man";
        System.out.println("实例代码块");
    }

    static{
        classroom = 109;
        System.out.println("实例静态代码块");
    }

    public void input_Student() {
        System.out.println("该学生的名字:" + this.name + "()" + this.sex + "->" + this.age);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
//import java.util.Date;
/*
import java.util.*;
import java.sql.*;
*/


public class Test {

    public static void main(String[] args){

        /*TestDemo test=new TestDemo(88);

        System.out.println(test.count);*/
/*
        Student stu = new Student();
        stu.toString();
*/

/*
        Student stu1 = new Student();
        Student stu2 = new Student();

        stu1.age = 18;
        stu1.name = "小明";
        stu1.sex = "男";

        System.out.println("---------------------------------------------------------------------");

        stu1.age = 15;
        stu1.name = "小美";
        stu1.sex = "女";
*/



/*
                java.util.Date date = new java.util.Date();
                System.out.println(date.getTime());
*/


        /*Date d = new Date();
        d.printDate();*/


       /* Date d1 = new Date(2004,8,24);
        d1.printDate();
        System.out.println("---------------------------------------------------------------------");
        Date d2 = new Date(2004,8);
        d2.printDate();
        System.out.println("---------------------------------------------------------------------");
        Date d3 = new Date(2004);
        d3.printDate();
        System.out.println("---------------------------------------------------------------------");
        Date d4 = new Date();
        d4.printDate();
        System.out.println("---------------------------------------------------------------------");*/

/*
        Date d = new Date();
        d.SteDay(2004,8,24);
        d.printDate();
*/

        /*
        Student stu1 = new Student();
        Student stu2 = new Student();

        stu1.age = 18;
        stu1.name = "小明";
        stu1.sex = "男";
        stu1.input_Student();
        stu1.DoClass();
        stu1.Exam();
        stu1.DoHomework();

        System.out.println("---------------------------------------------------------------------");

        stu1.age = 15;
        stu1.name = "小美";
        stu1.sex = "女";
        stu1.input_Student();
        stu1.DoClass();
        stu1.Exam();
        stu1.DoHomework();
*/
    }

   /* public void TestDemo(int a) {

        count=a;

    }*/

}

/*
 class TestDemo{

    private int count;

    public static void main(String[] args) {

        TestDemo test=new TestDemo(88);

        System.out.println(test.count);

    }

    TestDemo(int a) {

        count=a;

    }

*/

/*
class Test1{

    static int cnt = 6;

    static{
        cnt += 9;
    }

    public static void main(String[] args){
        System.out.println("cnt = " + cnt);
    }

    static{
        cnt /=3;
    }

}
*/


/*class Test2{

    public String toString() {
        System.out.print("aaa");
        return "bbb";
    }
    public static void main(String[] args) {
        Test test = new Test();
        System.out.println(test);
    }
}*/

